package com.ys.entity.overseas;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TOS_PlatformInformation", catalog="Id")
public class TosPlatformInformation extends BaseEntity<TosPlatformInformation> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="HwChannel", nameJava="hwChannel", typeDataBase="varchar")
	private String hwChannel;
	@YsField(nameDataBase="PlatformCode", nameJava="platformCode", typeDataBase="varchar")
	private String platformCode;
	@YsField(nameDataBase="HwCode", nameJava="hwCode", typeDataBase="varchar")
	private String hwCode;
	@YsField(nameDataBase="HwName", nameJava="hwName", typeDataBase="varchar")
	private String hwName;
	@YsField(nameDataBase="RegionName", nameJava="regionName", typeDataBase="varchar")
	private String regionName;
	@YsField(nameDataBase="CurrencyCode", nameJava="currencyCode", typeDataBase="varchar")
	private String currencyCode;
	@YsField(nameDataBase="CreateChangeId", nameJava="createChangeId", typeDataBase="bigint")
	private Long createChangeId;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TosPlatformInformation setId(Long id) {
		this.id = id;
		return this;
	}
	public String getHwChannel() {
		return hwChannel;
	}
	public TosPlatformInformation setHwChannel(String hwChannel) {
		this.hwChannel = hwChannel;
		return this;
	}
	public String getPlatformCode() {
		return platformCode;
	}
	public TosPlatformInformation setPlatformCode(String platformCode) {
		this.platformCode = platformCode;
		return this;
	}
	public String getHwCode() {
		return hwCode;
	}
	public TosPlatformInformation setHwCode(String hwCode) {
		this.hwCode = hwCode;
		return this;
	}
	public String getHwName() {
		return hwName;
	}
	public TosPlatformInformation setHwName(String hwName) {
		this.hwName = hwName;
		return this;
	}
	public String getRegionName() {
		return regionName;
	}
	public TosPlatformInformation setRegionName(String regionName) {
		this.regionName = regionName;
		return this;
	}
	public String getCurrencyCode() {
		return currencyCode;
	}
	public TosPlatformInformation setCurrencyCode(String currencyCode) {
		this.currencyCode = currencyCode;
		return this;
	}
	public Long getCreateChangeId() {
		return createChangeId;
	}
	public TosPlatformInformation setCreateChangeId(Long createChangeId) {
		this.createChangeId = createChangeId;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TosPlatformInformation setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TosPlatformInformation setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TosPlatformInformation setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TosPlatformInformation tosPlatformInformation(
		String hwChannel,
		String platformCode,
		String hwCode,
		String hwName,
		String regionName,
		String currencyCode,
		Long createChangeId,
		Integer status
			) {
		TosPlatformInformation entity = new TosPlatformInformation();
		entity.setHwChannel(hwChannel);
		entity.setPlatformCode(platformCode);
		entity.setHwCode(hwCode);
		entity.setHwName(hwName);
		entity.setRegionName(regionName);
		entity.setCurrencyCode(currencyCode);
		entity.setCreateChangeId(createChangeId);
		entity.setStatus(status);
		return entity;
	}
}